From fe5bebf9b193f03ce2535627bc55318e0b3e285e Mon Sep 17 00:00:00 2001 From: pedrofnseca Date: Mon, 28 Aug 2023 20:54:46 -0300 Subject: [PATCH] feat: init project --- .gitignore | 1 + Makefile | 19 +++++++++++++++++++ bin/main | Bin 0 -> 17136 bytes bin/main.o | Bin 0 -> 3768 bytes src/main.c | 7 +++++++ 5 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100755 bin/main create mode 100644 bin/main.o create mode 100644 src/main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..600d2d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c51ac1 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CC = gcc +CFLAGS = -Wall -g +LIBS = -lmicrohttpd +SRCDIR = src +BINDIR = bin + +SOURCES = $(wildcard $(SRCDIR)/*.c) +OBJECTS = $(patsubst $(SRCDIR)/%.c, $(BINDIR)/%.o, $(SOURCES)) + +all: $(BINDIR)/main + +$(BINDIR)/main: $(OBJECTS) + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) + +$(BINDIR)/%.o: $(SRCDIR)/%.c + $(CC) $(CFLAGS) -c -o $@ $< + +clean: + rm -f $(BINDIR)/*.o $(BINDIR)/main diff --git a/bin/main b/bin/main new file mode 100755 index 0000000000000000000000000000000000000000..82fed1b03d80faa510c9839921f09404e53ce5e8 GIT binary patch literal 17136 zcmeHOYiu0V6~43f+8Z{poma`D#S;jH0K2wBk|v}kjvXiK)*&Ge@lfe_ygT0AvO8;L zXCX#F4WU&dLKRf0ty$L1#EX-G zMIo|w`}Sw^%#n`6sA99eEaj1H1>4F0qJ!6d@7>%hBL|*5d%;UDK6Xp;hxfltKGbgFkPjs) zPr3-n(m%+@kH@{F=DbobSidiOiWUbde_0b-20Fco{$l8w`R7{rS6k?*y;Rowl3`?z zn8sAmHcQ1jEoB%8eAcMCrsEo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hTa~&C87jZ=ykNuEJpYxA_3GmPC^F63 z-|D=6=9RNT&FfOad2CkBlb-*DDm;Gu+M_LR><5ujPI>;T8qWdIzky7%eF;efL>H$3 z?(y`v%Z364Hx=$FAV!Trbkj}@l-*kAgIu)fazGFZr9{SD};Jz@Xv zL$3=tfKNbAV{1750s3VzynTfFvpSe{+<|ljn=#DEqT!l(1x3}ZO-9>^h)~J>&a^ zca9tTcJDqoddN7mb9j6djPNd&A=$R_AzM{wvrEI5wzwEp&U8)XofMrf1b-t7goV3W zj9j&16ihouJ6^{2!7Ep^jat>pp%5DfW3pOht~Zt&26oBFDbn_trh8%*?$24+HVU6o z>FP`wgE-K2d@M)~4++beR%sh!dOB~{(iq*REytY+s3vPg?6NB6ShaI_43C7o^4tp; z@>M!FW1|WmUB|cFZaGyv1QrMeY>rhjiNLw(lB?2QGtMroE zcyUf!1@0h)97+?(FT?LCK11@T$}AUAm`_KDRT^EijGhObHCfBU)3o#G&ny=0sfy&y z$w|k$T_o%@vm}oQN|w~PZcg}C`$#gq=i?T|Gr>>c{g?8d&t}h8@`RV*NAF<5Z?(^m zd@13TXF=KmDaa4+Hf*>4=HCGQKk;rZ?U(tBpw!RPi1)SM z1fS+E!k77t;A31bwUOd1=Z_adFBNg5R|etFasvfre&l=mWk{azHvDMrA$*x{G?1O8 z{o*Hh59~CT5n1Llg8j@7x1ZJC{EeC{e3@Sf&atD^A3pzY!A|^P_LKRVpu~yzln?VC zfsW!T zx7z4WvOhTNFS6j9;C2W2^8d(O3Q8pL z^QH5$=>G!)^uF7&?ld@a6xJlQbbbka>n7_FN|B3;hH5nu$ALfs=;2&o`J)eRp%-_fS@Ol23`L74b$O~Wa z<`(?tH~K`HcLtO2g4nqC1C9wMPH@M#1U4EAq(8{Gz6d($I{~^X(2D`mpQIvRY_y+6 RZ#vwJKfKlV_|k{){|ohVdnW(@ literal 0 HcmV?d00001 diff --git a/bin/main.o b/bin/main.o new file mode 100644 index 0000000000000000000000000000000000000000..cf7be2bedaa5df45b6d0f130f30512c1339c9016 GIT binary patch literal 3768 zcmbtWO>Ep$5PsgDX3I94KiVb@G)`3tg|0VSg^;vr8flewg8(5QDjXp3dc8mDt{wc- zCeT78q>3Cst+@2S1*s=)+>khc1QPU&ggA1k#DN2dO9hq6%=65~d2u8JBiZxjo1gdI zym@24zxcw1l%@$LP0WjJiBTc$=eEZSa=0K4i$mhifunydSGVp}Klp8M>-vN0R``4M zqbwR!x4!=s`Iq>*`)$?kblg+=CD-fJC&gEQWrZe#X3*eqe8uTxOwe+DC~299MQ&P( zqE*I9ZA|IKZV)>5 zxu)&dUfTlE^sLso_1T%?%(Px?>cxiXZ#Y)Va~(JIi=lJ1?bM5bS?kz7DE+{+E*IB4 zH?Xb1^@@G~hUgV3td8loSlxCVP*{zaEMSXQM5*O=?b4cE_uPi#+m=~swu4q!D|xmb z6wS4Eu_AoWD&dw4>))Eo41hU#iHnuW8U3l{TId8J?Y>wJrC5IN^l4*i`Xs?{%6O>; z;lX20N@i0l5PV6YS7I{l|xum0;nSdv+AT9E{Y!OI{{ylKGw+dn8;n+I)o?!&c<1V68 zkyW}D20j@aB91o-bN%39L`Mn7Gk7G1^NtXUXMImuae0sMW#!nND_OcI>T#n&5FRx=(!ATV76}(RJ1qFYGB&gXBGS{lKH&Ud3Dlbjl}Cj82&~Vx+UbyG z8$J_;1FhSD76+{xS~QYO2ad|Hf{8OG9COehkU*qZh;2eKNzQS zU{Q?22r1W5cqAol^pkW||aU`g}e zr1{sSSM;BNUsrYh>l9PnC;w-jP$p!N`GFH%9O*OdL3-`>OjbMnXfjuZPa{|uBo zj@$jDUIM!$Vg2Ag z1N$?cG&j0TVNjqPZTKLJlj;w#q*Tq){p0@>jD@7;ZwRm?f1MWkqx9N-ss8@}a;sBt literal 0 HcmV?d00001 diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..ffd55e6 --- /dev/null +++ b/src/main.c @@ -0,0 +1,7 @@ +#include +#include + +int main(int argc, char *argv[]) { + printf("Hello, Wolrd!\n"); + return 0; +}