Skip to content
Snippets Groups Projects
Commit 5d010dbc authored by jp7g21's avatar jp7g21
Browse files

Drake working

parent f2fa6ad9
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
make "$@"
res=$?
if [ $res != 0 ]
then
echo ":("
else
echo ":)"
fi
exit $res
objs := main.o stuff.o
main: $(objs)
cc main.o stuff.o -o main
.PHONY: clean
clean:
rm -f $(objs) main
#include <stdio.h>
int do_stuff(void);
int main(void)
{
do_stuff();
return 0;
}
#include <stdio.h>
int do_stuff(void)
{
printf("hello, world\n")
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment